package com.coolgor.axnut.dao.mdmis;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.coolgor.axnut.entity.mdmis.DeliverInfo;
import com.coolgor.axnut.entity.mdmis.DeliverInfoCondition;

public interface DeliverInfoDao {

	DeliverInfo queryDeliverInfoByID(Long recordID);
	
	DeliverInfo queryDeliverLastInfo(String insureNo);
	
	List<DeliverInfo> queryDeliverInfoList(@Param("deliverInfoCondition") DeliverInfo deliverInfoCondition,
											@Param("rowIndex") int rowIndex,
											@Param("pageSize") int pageSize);
	int queryDeliverInfoCount(@Param("deliverInfoCondition") DeliverInfo deliverInfoCondition);
	
	List<DeliverInfo> queryDeliverInfoListByCondition(@Param("deliverInfoCondition") DeliverInfoCondition deliverInfoCondition,
											@Param("rowIndex") int rowIndex,
											@Param("pageSize") int pageSize);
	int queryDeliverInfoCountByCondition(@Param("deliverInfoCondition") DeliverInfoCondition deliverInfoCondition);
	
	List<DeliverInfo> queryDeliverInfoListFuzzy(@Param("deliverInfoCondition") DeliverInfo deliverInfoCondition,
												@Param("rowIndex") int rowIndex,
												@Param("pageSize") int pageSize);	
	int queryDeliverInfoCountFuzzy(@Param("deliverInfoCondition") DeliverInfo deliverInfoCondition);
	
	int insertDeliverInfo(DeliverInfo deliverInfo);
	
	int updateDeliverInfo(DeliverInfo deliverInfo);
	
	int deleteDeliverInfo(DeliverInfo deliverInfo);
	
	int batchDeleteDeliverInfo(List<Long> idList);

}
